import { profile } from '@/types/user'
const Key = 'rabbit-vue3'



export function setProfile(profile: profile): void {
  localStorage.setItem(Key, JSON.stringify(profile))
}


export function getProfile(): profile {
  return JSON.parse(localStorage.getItem(Key) || '{}')
}


export function removeProfile() {
  localStorage.removeItem(Key)
}
